package com.yanqu.road.server.manager.activity.commonsupport.handler;

import com.yanqu.road.server.manager.activity.jiuzhou.CrossJiuZhouMgr;
import com.yanqu.road.server.manager.activity.jiuzhou.activity.CrossJiuZhouActivity;

/**
 * 九州支持的是个人
 */
public class JiuZhouSupportActivityHandler extends SupportActivityHandler {

    @Override
    public boolean ableUnion(int activityId, int groupId, String unionUid) {
        long targetId = Long.valueOf(unionUid);
        CrossJiuZhouActivity activity = CrossJiuZhouMgr.getActivity(activityId);
        if(activity != null){
            return activity.ableUnion(targetId);
        }
        return false;
    }

    @Override
    public boolean ableUser(int activityId, int groupId, long userId) {
        return true;
    }
}
